package view;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class ViewPrincipal extends JFrame
{

    private static final ViewPrincipal INSTANCE = new ViewPrincipal();
    private JPanel mainPanel = new JPanel();

    public ViewPrincipal()
    {
        this.add(mainPanel);
        build();
    }

    private void build()
    {
        this.setTitle("test");
        this.setSize(800, 600);
        this.setLocationRelativeTo(null);
        this.setResizable(false);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setLayout(new BorderLayout());

    }

    public static ViewPrincipal getINSTANCE()
    {
        return INSTANCE;
    }
}
